home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 307 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Demo/game to OS friendly part II
  5. Date: 6 Jan 1996 00:06:01 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4cked9$mjn@maureen.teleport.com>
  8. References: <38231819@kone.fipnet.fi> <4cgsn7$ke3@maureen.teleport.com> <38231852@kone.fipnet.fi>
  9. NNTP-Posting-Host: julie.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
  13.  
  14. : >  Open the upcoming screen with the SA_Behind option... end after
  15. : >  using ScreenToFront() close the old screen.
  16.  
  17. : Ok. What is the fastest way to have triple buffering
  18. : on a Intuition screen? ScrollVPort()?
  19.  
  20.  I cant say yes.. but in therory it should be. It only has to refesh the
  21.  the scroll registers and plane pointers in the copper list.
  22.  I think the OS in 3.x is smart to keep track of the copper list entry and
  23.  is efficient at updating it. (I never botherred to check) But I
  24.  read that this function has been optmized to the point that its 10x faster
  25.  then on previous OS version. (Not that this say much :)
  26.  
  27.  personaly I would expect to see something like this if it was
  28.  really optimized :
  29.  
  30. ScrollVPort:
  31.     ... get OS private structure from viewport
  32.     move.l    (PRIVATE_Copper_Planes,a1),d0
  33.     beq.b    .Exit                ; not visible
  34.     movea.l    d0,a1
  35.     move.w    (PRIVATE_Copper_PlanesCount,a1),d0    
  36.     lea    (bm_Planes,a0),a0
  37. ..    ml    (a1)+,a2
  38.     mw    (a0)+,(a2)
  39.     ml    (a1)+,a2
  40.     mw    (a0)+,(a2)
  41.     dbra    d0,..
  42. .Exit
  43.  
  44.     Stephan
  45.